Page({
  data: {
    count1: 4
  },
  add() {
    let num = this.data.count1
    num++
    if (num > 5) {
      wx.showToast({
        icon: "none",
        title: '不能加了捏~🗡',
      })
      return
    }
    this.setData({
      count1: num
    })
  },
  reduce() {
    let num = this.data.count1
    num--
    if (num < 0) {
      wx.showToast({
        icon: "none",
        title: '不能减了捏~🗡',
      })
      return
    }

    this.setData({
      count1: num
    })
  }
})